﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Idte.Core.Infrastructure.Repository
{
    
    public class GuidAggregateBase
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { get; set; }
    }


    public class GuidAggregateBase<T> : GuidAggregateBase
    {

        protected T data;
        public GuidAggregateBase()
        {
            //Data = default(T);
        }
        public GuidAggregateBase(GuidAggregateBase<T> data)
        {
            this.data = data.data;
        }
        public GuidAggregateBase(T data)
        {
            this.data = data;
        }
    }
}
